package com.sky.dto;

import com.sky.Entity.Flavor;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel("新增菜品数据模型")
public class DishDTO {

    @ApiModelProperty(value = "分类id",required = true,example = "21")
    private Long categoryId;
    @ApiModelProperty(value = "描述",required = false)
    private String description;
    @ApiModelProperty(value = "口味",required = false)
    private List<Flavor> flavors;

    @ApiModelProperty(value = "主键id")
    private Long id;
    @ApiModelProperty(value = "菜品名",required = true,example = "冬瓜汤")
    private String name;
    @ApiModelProperty(value = "价格",required = true,example = "10.8")
    private Double price;
    @ApiModelProperty(value = "图片",required = true,example = "url")
    private String image;

    @ApiModelProperty(value = "分类id",required = false,example = "0")
    private Integer status;
    //创建时间
    private LocalDateTime createTime;

    //更新时间
    private LocalDateTime updateTime;

    //创建人
    private Long createUser;

    //修改人
    private Long updateUser;
}
